package ooday03;

public abstract class Employee {
    String name;
    int age;
    Double salary;

    Employee(String name,int age,Double salary){
        this.name=name;
        this.age=age;
        this.salary=salary;
    }

    void go(){
        System.out.println(age+"的"+name+"薪资为"+salary+"上班打卡成功");
    }

    void  off(){
        System.out.println(age+"的"+name+"薪资为"+salary+"下班打卡成功");
    }

    abstract void work();

}
